﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GenericLibrariesToolKit;
using Model;
using Utils.Enumeration;
namespace BLL.Users
{
    /// <summary>
    /// 用户业务接口
    /// </summary>
    public interface UserBO : DAO<User>
    {
        /// <summary>
        /// 说明：
        /// </summary>
        /// <param name="user">用户对象</param>
        /// <returns>登录提示字符串</returns>
        string Login(User user);
      
        /// <summary>
        ///  说明：
        /// </summary>
        /// <param name="user">用户对象</param>
        /// <param name="newPassword">用户输入的新密码</param>
        /// <returns>密码修改提示字符串</returns>
        string UpdatePassword(User user, string newPassword);
     
        /// <summary>
        /// 说明：
        /// </summary>
        /// <param name="user">用户对象</param>
        /// <returns>成功：重置密码连接,失败：null</returns>
        string PasswordRecovery(User user);
      
        /// <summary>
        /// 说明：--将用户的可见状态设置为不可见
        /// </summary>
        /// <param name="userId">用户编号</param>
        /// <returns>成功：true,失败：false</returns>
        bool Delete(string userId);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <param name="newPassword"></param>
        /// <returns></returns>
        string setPassword(User user, string newPassword);
    }
}
